#include "HttpServer.hpp"
#include <memory>
#include <iostream>
#include <string>

using namespace std;

// ./HttpServer port
int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        exit(1);
    }

    uint16_t port = stoi(argv[1]);

    unique_ptr<HttpServer> srv(new HttpServer(port));

    srv->Start();

    return 0;
}